package com.ch3cooh.registry.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ch3cooh.registry.pojo.RegisterInfo;
import com.ch3cooh.registry.service.RegisterService;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping(value = "/reg",produces = "application/json;charset=utf-8")
public class RegisterController {

    @Autowired
    RegisterService registerService;

    @RequestMapping("/info")
    public Map<String,List<RegisterInfo>> info(){
        return registerService.listRegstry();
    }

}
